@import '@/app/styles/variables';

.modal {
  display: flex;
  padding: 56px;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  border-radius: 32px;
  background: var(--simple-morning, #fff);
}

.container {
  width: 100%;
}

.title {
  color: var(--simple-night, #000);
  text-align: center;
  margin-bottom: 32px;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
  background: #fff;
}

.clipboard {
  user-select: none;
  cursor: pointer;
  display: flex;
  padding: 23px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  align-self: stretch;
  margin-bottom: 32px;
  border-radius: 16px;
  border: 1px solid var(--simple-gray-day, #e1e1e1);
  background: var(--simple-gray-morning, #f3f3f3);
}

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.link {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  width: 64px;
  height: 64px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 12px;

  border-radius: 20px;
  border: 1px solid var(--simple-gray-day, #e1e1e1);
}

.telegram {
  transform: scale(calc(32 / 30));
}

.url {
  width: 100%;
  overflow: hidden;
  flex: 1 0 0;
  word-break: keep-all;
  white-space: nowrap;
  height: 26px;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  background: transparent;
}
.hide {
  background: linear-gradient(90deg, #000 61.71%, rgba(0, 0, 0, 0) 96.39%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.copy {
  all: unset;
  cursor: pointer;
  display: flex;
  width: 24px;
  height: 24px;
  padding: 2px 3px;
  justify-content: center;
  align-items: center;
}

@include media(sm) {
  .modal {
    padding: 16px;
    border-radius: 32px 32px 0 0;
    bottom: 0;
    width: 100%;
    transform: unset;
  }

  .url {
    font-size: 16px;
    line-height: 22px;
    background: linear-gradient(90deg, #000 81.71%, rgba(0, 0, 0, 0) 96.39%);
    background-clip: text;
    color: transparent;
  }
}
